package com.meteor.vo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.fhs.core.trans.anno.Trans;
import com.fhs.core.trans.constant.TransType;
import com.fhs.core.trans.vo.TransPojo;
import com.meteor.entity.Community;
import com.meteor.framework.common.base.AutoEntity;
import com.meteor.framework.common.utils.DateUtils;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * @author lynn
 * @date 2024/2/28
 *
 * @Description:楼栋管理
 */

@Data
public class BuildingVO implements Serializable, TransPojo {

    private String id;

    @Schema(description= "楼栋名称")
    private String buildingName;

    @Schema(description = "楼栋编码")
    private String buildingCode;

    @Schema(description = "楼栋面积")
    private BigDecimal buildingAcreage;

    @Schema(description = "社区id")
    @Trans(type = TransType.SIMPLE, target = Community.class, fields = "communityName", ref = "communityName")
    private String communityId;

    @Schema(description = "社区名称")
    private String communityName;

    @Schema(description = "组织id")
    private String orgId;

    @Schema(description = "组织名称")
    private String orgName;

    @Schema(description = "创建时间")
    @JsonFormat(pattern = DateUtils.DATE_TIME_PATTERN)
    private Date createTime;

    @Schema(description = "创建人id")
    private String createdBy;

    @Schema(description = "创建人姓名")
    private String createdUserName;


}
